home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 3 / Cream of the Crop 3.iso / comm / drmaster.zip / DRWY205.ZIP / XTABLE.DOC < prev    next >
Text File  |  1989-06-12  |  3KB  |  50 lines

  1.                            XTABLE.EXE INSTRUCTIONS
  2.  
  3. DOORWAY now has a new capability.  It can redefine keyboard entries made at
  4. the remote end.  Thus if you have a program which requires a F10 to be
  5. pressed to exit, you can now redefine some other key, such as "Q" or ^Q,
  6. to be an F10.  There are no restrictions on redefinitions (except you cannot
  7. redefine the RETURN key).  Once the F10 is redefined as a "Q" then the user can
  8. enter a "Q" to exit the program, and the program will receive an F10.
  9.  
  10. To use the table generator enter XTABLE at the dos prompt.  If you already have
  11. a table, it will print the translations already in the table.  It will then ask
  12. if you want to modify the present table or erase it and start a new one.  The
  13. last definition entered for a key will be the one kept, so if you make a
  14. mistake simply enter it again.  On each line enter the character you want
  15. translated followed by the character you want it translated to.  In the above
  16. example you would enter "Q" followed by "F10".  Note that the extended codes
  17. show a "*" followed by the character equilavent of the scan code.  When the
  18. table is complete, enter a RETURN.  The translation table DOORWAY.XLT will
  19. be generated.
  20.  
  21. The number in paranthesis shows the HEX value passed.  For normal characters
  22. the lower two bytes are the ASCII, and the first 2 bytes are the scan code.
  23. For extended codes, the last two bytes are 0 and the first two are again the
  24. scan code.  The table starts out with a default, such that a character from
  25. the remote will generate the "most likely" scan code.  For instance the "+"
  26. will generate the scan code for the SHIFT "=" plus sign.  If you want the
  27. program to see what appears to be the GREY KEY "+" then simply enter a plus
  28. sign followed by the GREY KEY "+".  Using the default DOORWAY.XLT is the same
  29. as using no translation table at all (DOORWAY will still put the "expected"
  30. scan codes in).
  31.  
  32. To use the translation table simply put a /X: on the doorway command line
  33. (before the /P: if there is one).  DOORWAY will then load DOORWAY.XLT from
  34. the current directory.  If you want it to load a different table or from a
  35. different directory then follow the /S: with the path\filename of the table.
  36. You can rename the DOORWAY.XLT file, but it will have to be named DOORWAY.XLT
  37. if you want to make modifications to it.
  38.  
  39. INTERNALS
  40.  
  41. The table consists of two tables of 256 words each.  Each word contains the
  42. character code and scan code for each possible ASCII character.  The first
  43. table is the lookup table for standard ASCII characters, and the second is for
  44. extended codes.  For instance, if a ^C (ASCII 3) comes in the modem, the entry
  45. at location 6 will be used to determine the translation.  Location 6 will be
  46. passed to the program in the AL register (as the character) and location 7 will
  47. be passed to the program as the scan code.  If an extended key was entered with
  48. a scan code of 3 then the second table would be used, starting with offset 512
  49. of the file.
  50.